#include "Weapon.h"

Weapon::Weapon(Object * owner)
{
	this->owner = owner;
}

Weapon::~Weapon()
{
}

void Weapon::Think(double elapsedTime, Object * target, bool capable)
{
	//printf("Weapon Think\n");
	this->target = target;
	if(capable && CanUseWeapon(elapsedTime))
	{
		UseWeapon(target);	
	}
	
	WeaponThinkEntryPoint(elapsedTime, target, capable);
	lastElapsedTime = elapsedTime;
}
void Weapon::WeaponThinkEntryPoint(double elapsedTime, Object * target, bool isCapable)
{
}
void Weapon::Draw()
{
}
bool Weapon::CanUseWeapon(double elapsedTime)
{
	//printf("Weapon CanUseWeapon\n");
	return false;
}
bool Weapon::IsUsingWeapon()
{
	return false;
}
void Weapon::UseWeapon(Object * target)
{
	//printf("Weapon UseWeapon\n");
}
